(#) com.vanniktech:lint-rules-rxjava2

Name
:   Lint Rules RxJava 2
Description
:   Very opinionated Lint Checks
Project
:   https://github.com/vanniktech/lint-rules
License
:   [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)
Vendor
:   vanniktech/lint-rules/
Feedback
:   https://github.com/vanniktech/lint-rules/issues
Min
:   Lint 8.0 and 8.1
Compiled
:   Lint 8.0 and 8.1
Artifact
:   com.vanniktech:lint-rules-rxjava2:0.25.0

(##) Included Issues

|Issue Id                                                                                |Issue Description                                                               |
|----------------------------------------------------------------------------------------|--------------------------------------------------------------------------------|
|[RxJava2MethodMissingCheckReturnValue](RxJava2MethodMissingCheckReturnValue.md.html)    |Method is missing the @CheckReturnValue annotation                              |
|[RxJava2MissingCompositeDisposableClear](RxJava2MissingCompositeDisposableClear.md.html)|Marks CompositeDisposables that are not being cleared                           |
|[RxJava2DisposableAddAllCall](RxJava2DisposableAddAllCall.md.html)                      |Marks usage of addAll() on CompositeDisposable                                  |
|[RxJava2DefaultScheduler](RxJava2DefaultScheduler.md.html)                              |Pass a scheduler instead of relying on the default Scheduler                    |
|[RxJava2DisposableDisposeCall](RxJava2DisposableDisposeCall.md.html)                    |Marks usage of dispose() on CompositeDisposable                                 |
|[RxJava2SubscribeMissingOnError](RxJava2SubscribeMissingOnError.md.html)                |Flags a version of the subscribe() method without an error Consumer             |
|[RxJava2SchedulersFactoryCall](RxJava2SchedulersFactoryCall.md.html)                    |Instead of calling the Schedulers factory methods directly inject the Schedulers|

(##) Including

!!!
   This is not a built-in check. To include it, add the below dependency
   to your project. This lint check is included in the lint documentation,
   but the Android team may or may not agree with its recommendations.

```
// build.gradle.kts
lintChecks("com.vanniktech:lint-rules-rxjava2:0.25.0")

// build.gradle
lintChecks 'com.vanniktech:lint-rules-rxjava2:0.25.0'

// build.gradle.kts with version catalogs:
lintChecks(libs.lint.rules.rxjava2)

# libs.versions.toml
[versions]
lint-rules-rxjava2 = "0.25.0"
[libraries]
# For clarity and text wrapping purposes the following declaration is
# shown split up across lines, but in TOML it needs to be on a single
# line (see https://github.com/toml-lang/toml/issues/516) so adjust
# when pasting into libs.versions.toml:
lint-rules-rxjava2 = {
    module = "com.vanniktech:lint-rules-rxjava2",
    version.ref = "lint-rules-rxjava2"
}
```

0.25.0 is the version this documentation was generated from;
there may be newer versions available.

(##) Changes

* 0.6.0: First version includes RxJava2DefaultScheduler,
  RxJava2DisposableAddAllCall, RxJava2DisposableDisposeCall,
  RxJava2MethodMissingCheckReturnValue,
  RxJava2MissingCompositeDisposableClear,
  RxJava2SchedulersFactoryCall, RxJava2SubscribeMissingOnError.

(##) Version Compatibility

There are multiple older versions available of this library:

| Version            | Date     | Issues | Compatible | Compiled      | Requires |
|-------------------:|----------|-------:|------------|--------------:|---------:|
|              0.25.0|2023/09/17|       7|         Yes|    8.0 and 8.1|8.0 and 8.1|
|              0.24.0|2023/02/21|       7|         Yes|    7.3 and 7.4|7.3 and 7.4|
|              0.23.0|2022/12/20|       7|         Yes|    7.3 and 7.4|       7.0|
|              0.22.0|2022/08/05|       7|         Yes|            7.2|       7.0|
|              0.21.0|2022/05/21|       7|         Yes|            7.2|       7.0|
|              0.20.0|2022/05/10|       7|         Yes|            7.2|       7.2|
|              0.19.0|2022/03/10|       7|         Yes|            7.1|       7.1|
|              0.18.0|2022/01/29|       7|      No[^1]|            7.0|       7.0|
|              0.17.0|2021/08/22|       7|      No[^1]|            7.0|       7.0|
|              0.16.0|2021/08/22|       7|      No[^1]|            4.1|       4.1|
|              0.15.0|2021/06/27|       7|      No[^1]|            4.1|       4.1|
|              0.14.0|2021/03/20|       7|      No[^1]|            4.1|       4.1|
|              0.13.0|2020/03/22|       7|      No[^1]|            3.6|       3.6|
|              0.12.0|2019/04/29|       7|      No[^1]|            3.4|       3.4|
|              0.10.0|2019/02/19|       7|      No[^1]|            3.3|       3.3|
|               0.9.0|2019/01/18|       7|      No[^1]|            3.3|       3.3|
|               0.8.0|2018/09/25|       7|      No[^1]|            3.2|       3.2|
|               0.7.1|2018/04/16|       7|      No[^1]|            3.1|       3.1|
|               0.7.0|2018/04/16|       7|      No[^1]|            3.1|       3.1|
|               0.6.0|2018/02/04|       7|         Yes|  Not specified|Not specified|

Compatibility Problems:

[^1]: org.jetbrains.uast.kotlin.declarations.KotlinUMethod#getSourcePsi(): org.jetbrains.kotlin.psi.KtDeclaration is not available  

<!-- Markdeep: --><style class="fallback">body{visibility:hidden;white-space:pre;font-family:monospace}</style><script src="markdeep.min.js" charset="utf-8"></script><script src="https://morgan3d.github.io/markdeep/latest/markdeep.min.js" charset="utf-8"></script><script>window.alreadyProcessedMarkdeep||(document.body.style.visibility="visible")</script>